/*
 * CharacterIntro.java
 *
 * Created on May 2, 2008, 6:02 AM
 */

package RPack;

import javax.swing.ButtonGroup;

public class CharacterIntro extends javax.swing.JFrame {
    
    /** Creates new form CharacterIntro */
    public CharacterIntro() {
        initComponents();
        ButtonGroup roster = new ButtonGroup();
        roster.add(Hailey);
        roster.add(Kiara);
        roster.add(Raine);
    }
    
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
    private void initComponents() {
        Hailey = new javax.swing.JRadioButton();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        Kiara = new javax.swing.JRadioButton();
        Raine = new javax.swing.JRadioButton();
        jButton1 = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();

        Hailey.setText("Warrior");
        Hailey.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        Hailey.setMargin(new java.awt.Insets(0, 0, 0, 0));
        Hailey.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                HaileyActionPerformed(evt);
            }
        });

        jLabel1.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\HaileyMugshot.PNG"));

        jLabel2.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\KiaraMugShot.PNG"));

        jLabel3.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\Administrator\\My Documents\\My Pictures\\RaineMugshot.png"));

        Kiara.setText("Rouge");
        Kiara.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        Kiara.setMargin(new java.awt.Insets(0, 0, 0, 0));
        Kiara.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                KiaraActionPerformed(evt);
            }
        });

        Raine.setText("Magician");
        Raine.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        Raine.setMargin(new java.awt.Insets(0, 0, 0, 0));
        Raine.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                RaineActionPerformed(evt);
            }
        });

        jButton1.setText("Select");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jMenu1.setText("Load Game...");
        jMenuItem1.setText("Select...");
        jMenu1.add(jMenuItem1);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(Hailey)
                        .add(47, 47, 47)
                        .add(jLabel1))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                        .add(Kiara)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 51, Short.MAX_VALUE)
                        .add(jLabel2))
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                        .add(Raine)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 41, Short.MAX_VALUE)
                        .add(jLabel3))
                    .add(jButton1))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .addContainerGap()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(Hailey)
                    .add(jLabel1))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel2)
                    .add(Kiara))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel3)
                    .add(Raine))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jButton1)
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void RaineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_RaineActionPerformed
// TODO add your handling code here:
        Intro.character = 3;
    }//GEN-LAST:event_RaineActionPerformed

    private void KiaraActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_KiaraActionPerformed
// TODO add your handling code here:
        Intro.character = 2;
    }//GEN-LAST:event_KiaraActionPerformed

    private void HaileyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_HaileyActionPerformed
// TODO add your handling code here:
        Intro.character = 1;
    }//GEN-LAST:event_HaileyActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
        DungeonInterface Dun = new DungeonInterface();
        Dun.run();
    }//GEN-LAST:event_jButton1ActionPerformed
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CharacterIntro().setVisible(true);
            }
        });
    }
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JRadioButton Hailey;
    private javax.swing.JRadioButton Kiara;
    private javax.swing.JRadioButton Raine;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    // End of variables declaration//GEN-END:variables
    
}
